package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 订单表
 *
 * @author 16693103420
 * @since 2024-01-31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_pay")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PayModel implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;//订单表ID
    private Integer status;
    private String name;
    private String phone;
    private String openid;//用户ID
    private String orderId;//订单ID
    private Double price;//订单ID
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @TableField(exist = false)
    private Integer areaId;
    @TableField(exist = false)
    private String areaText;
    @TableField(exist = false)
    private String area;
    @TableField(exist = false)
    private String city;
    @TableField(exist = false)
    private String province;
    @TableField(exist = false)
    private Integer count;
    
    private Integer userId;
}
